//生成随机数字
var x,y;
var dataTest = [];
var dataTest2 = [];
//下面是瞎编的数字
for(var i=0;i<200;i++){
   x=100*Math.random();
   y=100*Math.random();
   dataTest.push([x*x,y*y]);
   x=100*Math.random();
   y=100*Math.random();
   dataTest2.push([x*y,x*x-y*y]);
}
var myChart = echarts.init(document.getElementById("t6"));
var option1 = {
    title: {
        text: '石子落地位置',
        left: 'center',
     }, 
     xAxis: {},
     yAxis: {},
     legend: {
        left: 'center',
        top: 'bottom',
     },
     series: [{
        type:'scatter',
        data: dataTest,
        name: '石头A',
        symbolSize: 4,
     },{
        type:'scatter',
        data: dataTest2,
        name: '石头B',
        symbolSize: 4,
        itemStyle: {
           color: 'red',
        },
     }],    
        
};
myChart.setOption(option1);